<!--{eval $_TPL['titles'] = array('新同居时代 - 送好友礼品');}-->
<!--{template header}-->
<script type="text/javascript">
function check()
{
	var obj = $('gift_list').getElementsByTagName('input');
	for(var i=0; i<obj.length;i++){
		if(obj[i].type != 'radio') continue;
		if(obj[i].checked == true) return true;
	}
	alert('请选择你想要的礼品');
	return false;
}
</script>
<!--{template house/view/menu}-->
<div class="s_clear">
	<div style="background-color: #FFFFFF; line-height: 25px;">
		<div style="border: 5px solid rgb(229, 235, 243); padding: 20px;">
						<div style="border: 1px solid rgb(238, 238, 238); padding-left: 5px; margin-left: 10px; padding-right: 5px; margin-top: 10px; padding-bottom: 10px;background-color: rgb(243, 255, 236); width:auto;">
							<div style="font-weight: bold;">客官，小店提供如下礼品，货源充足，物美价廉，请尽情选购。</div>
							<form action="house.php?ac=gift&touid={$touid}" method="post" onsubmit="return check();">
								<div id="gift_list">
									<ul>
									<!--{loop $data $val}-->
										<li>
											<div class="img"><label for="gift_{$val['gid']}"><img src="house/view/gift/{$val['gid']}.jpg"/></label></div>
											<div class="desc">
											{$val['name']}<br/>
											花费 {$val['price']} 金币<br/>
											亲密度 + {$val['thick']} <br/>
											<input type="radio" name="gid" value="{$val['gid']}" id="gift_{$val['gid']}"/>
											</div>
										</li>
									<!--{/loop}-->
									</ul>
								</div>
								<div style="clear:both;"></div>
								<div id="gift_buy">
									<ul>
										<li class="top">请选择要赠送给 </li>
										<li><div class="avatar48" style="text-align:left"><a target="_blank" href="space.php?uid={$user['uid']}" title="{$_SN[$user['uid']]}"><!--{avatar($user['uid'],'small')}--></a></div> </li>
										<li><input type="hidden" name="myFormAc" value="update" /><input type="submit" class="submit" value="提交"/></li>
										<li>说明：给同居的另一方送礼物，增加同居亲密度，否则不增加</li>
									</ul>
								</div>
								<div style="clear:both;"></div>
							</form>
						</div>
		</div>
	</div>
</div>

<!--{template footer}-->